﻿using Sunny.Core.DefinedData;

namespace Sunny.Core.Domain.Model
{
    public class ModelCollection<T> : SList<Model<T>> 
        where T : IAggregateRoot
    {
        public void Add(SKey key)
        {
            this.Add(new Model<T>(key));
        }

        //public SList<T> ToModelList()
        //{
        //    var modelList = new SList<T>();

        //    foreach (var simpleModel in this)
        //    {
        //        modelList.Add(simpleModel.ToModel());
        //    }

        //    return modelList;
        //}
    }
}